{% extends "space/service/index.html" %}
{% load pagination_tags %}
{% block right_container %}
<div class="admin_position">客服中心 > 审核列表</div>
		 <form action="/dgieie/admin/infos/{{info_type}}">
          {% csrf_token %}
         </form>
         <table cellpadding="0" cellspacing="0" width="50%"><tbody>
            <tr>
                <td colspan="9" class="admin_td_title">信息列表</td>
            </tr> 
            {% autopaginate list 10%}

            <tr class="admin_title">
                <td>序号 </td>
                <td>餐厅名称</td>
                <td>联系人</td>
                <td>联系电话</td>
                <td>是否已审核</td>
                <td>审核是否通过</td>
                <td>申请时间</td>
                <td colspan="2">操作</td>              
            </tr>
            {%if list%}
	            {%for l in list%}
	            <tr>
	                <td>{{ forloop.counter }} </td>
	                <td>{{l.name}}</td>
	                <td>{{l.contact}}</td>
	                <td>{{l.phone}}</td>
	                <td>{{l.audited}}</td>
	                <td>{{l.passed}}</td>
	                <td>{{l.reg_time|date:"Y-m-d H:m:s"}}</td>
	                <td><a href="/space/service/rests/{{l.id}}/audit/">审核</a></td>
	                <td><a href="/space/service/rest/{{l.id}}/delete/">删除</a></td>              
	            </tr>
	            {%endfor%}
            {%else%}
            	<tr>
                	<td colspan="6">对不起，没有相关的信息</td>
            	</tr>
            {%endif%}
		</tbody>
	</table>
	{% paginate %}

{%endblock%}
	
</body>
</html>
